import request from '@/utils/request'

// 获取统计概览数据
export function getStatsOverview() {
  return request({
    url: '/pond/fishing/stats/overview',
    method: 'get'
  })
}

// 获取文章阅读趋势
export function getReadTrend(query) {
  return request({
    url: '/pond/fishing/stats/read-trend',
    method: 'get',
    params: query
  })
}

// 获取分类统计
export function getCategoryStats() {
  return request({
    url: '/pond/fishing/stats/category',
    method: 'get'
  })
}

// 获取热门文章排行
export function getPopularArticles(query) {
  return request({
    url: '/pond/fishing/stats/popular',
    method: 'get',
    params: query
  })
}

// 获取用户活跃度统计
export function getUserActivityStats(query) {
  return request({
    url: '/pond/fishing/stats/user-activity',
    method: 'get',
    params: query
  })
}

// 获取评论统计
export function getCommentStats(query) {
  return request({
    url: '/pond/fishing/stats/comment',
    method: 'get',
    params: query
  })
}